"""
@name : 用户检测（无数次）
@author : wangaokang
@projectname: pythonProject6
"""
import random

employee_send = ["曹嘉伟","伍佳希","熊亿阳","朱嘉惠","梁晓凤","谢萧伊","王奥康"]
employee_recive = ["曹嘉伟","伍佳希","熊亿阳","朱嘉惠","梁晓凤","谢萧伊","王奥康"]

send = {}
recive = {}

while True:

    num = len(employee_send)

    if num != 0:
        #生成随机数
        a = random.randint(1,num)
        b = random.randint(1,num)
        #不能自己送自己
        if employee_send[a-1] == employee_recive[b-1]:
            continue
        #按照一对的方式去掉随机数对应的人
        c = employee_send.pop(a-1)
        d = employee_recive.pop(b-1)

        #把去掉的一对的人各自建立送礼和收礼的映射关系
        send[c] = d
        recive[d] = c
    #没有人就可以结束了
    else:
        break
#打印关系
for i in send:
    print(f"{i}送礼物给{send[i]},收{recive[i]}的礼物")